package cn.edu.cdut.dao;

import cn.edu.cdut.model.SpecialityInfo;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Author  kobe
 * Created on 2017-05-26-22:15
 */
public interface SpecialityInfoDao extends CrudRepository<SpecialityInfo, Long> {
        SpecialityInfo findBySpeciality(String speciality);
        SpecialityInfo findById(int id);
        List<SpecialityInfo> findAll();
        List<SpecialityInfo> findByDiscipline(String discipline);
        List<SpecialityInfo> findByIsFinished(boolean isFinished);
        List<SpecialityInfo> findByTotalPeople(int totalPeople);
}
